﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Animal.aspx.cs" Inherits="ForrajeriaFRONT.ABM.Animal" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

 <style type="text/css">
    #CargarDatos
    {
        padding-left:20px;
        
        margin: 0 auto;
        
        
    }
    
        #gridDatos
    {
        margin: 0 auto;
        width:100%;
        
        
    }
     .style1
     {
         height: 28px;
     }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="carga">
        <br />
        
        <asp:ValidationSummary ID="ValidationSumary1" runat="server" ForeColor="red" />
        
        <asp:RequiredFieldValidator id="reqValidatorNombre" runat="server"
                ErrorMessage="Debe Ingresar Un Nombre" Display="None" ControlToValidate="txtNombre" ForeColor="red" />
        
        
        
        <table id="CargaDatos" runat="server" width="40%" cellpadding="10">
            <tbody>
                <tr>
                    <td class="style1">
                        <asp:Label ID="lblNombre" runat="server" Text="Nombre:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="txtNombre" runat="server"  MaxLength="10"></asp:TextBox>
                    </td>
                    <td colspan="12" class="style1">
                        <asp:Button ID="btnGuardar" runat="server" Text="Guardar"  
                             PostBackUrl="~/ABM/Animal.aspx" onclick="btnGuardar_Click" /><!--onclick="btnGuardar_Click" />!-->

                    </td>
                    <td class="style1">
                        <asp:Label ID="lblResultado" runat="server" Text=""  Width="200px" />
                    </td>
                </tr>
            </tbody>
        </table>

        <br />

        <asp:GridView ID="gridDatos" runat="server"   
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" Width="100%"
            EnableSortingAndPagingCallbacks="True" 
            onrowdeleting="gridDatos_RowDeleting1" 
            onselectedindexchanging="gridDatos_SelectedIndexChanging1">
            
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            
            
            
            <Columns>
                <asp:BoundField DataField="codigoAnimal" HeaderText="Codigo" />
                <asp:BoundField DataField="nombre" HeaderText="Nombre" />
                <asp:CommandField ButtonType="Image" CancelText="" EditText="Editar" 
                    HeaderText="Editar" InsertText="" NewText="" 
                    SelectImageUrl="~/images/modificarABM.jpg" SelectText="" 
                    ShowSelectButton="True" UpdateText="" />
                <asp:CommandField ButtonType="Image" CancelText="" 
                    DeleteImageUrl="~/images/borrarABM.jpg" EditText="" HeaderText="Quitar" 
                    InsertText="" NewText="" SelectText="" ShowDeleteButton="True" 
                    ShowHeader="True" UpdateText="" />
            </Columns>
            
            
            
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
           
        </asp:GridView>
    </div>
</asp:Content>
